package com.hhj.aimin.admin.controller.drug;


import com.hhj.aimin.admin.feign.DrugFeignClient;
import com.hj.aimin.base.response.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/drug")
@RequiredArgsConstructor
public class DrugController {

    private final DrugFeignClient drugFeignClient;

    @GetMapping("/list")
    public Result<?> list(){
        return Result.success(drugFeignClient.list());
    }
}
